package com.chat.demo.userservice.Entity.DAO;

import com.chat.demo.userservice.Entity.Entity.FriendRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FriendRequestDao {
    @Select("SELECT * FROM app.friend_request WHERE recipient_id = #{userId}")
    List<FriendRequest> getPendingRequestsByUserId(Integer userId);
}